<?php

/**
 * Simon's graphs - index.php (testing php file)
 *
 * Copyright (c) 2008 Jan ŠTAFA aka Simon (http://betaverze.blogspot.com)
 *
 * For more information please see http://code.google.com/
 *
 * @copyright  Copyright (c) 2008 Jan Štafa aka Simon
 * @license    GNU General Public License
 * @link       http://code.google.com/
 * @category   Graphs
 */

/*Only for debuging*/
require_once("helpers/Krumo/class.krumo.php");

require_once("GBussines.php");


   	     $graph = new  GBussines(GBussines::COURSE);
         $graph->width = 600;
         $graph->height = 300;
         $graph->title = "Vyvoj";
         $graph->titleColor = "00FF00";
         $graph->titleSize = 20;
      
         $graph->legendText = array("dolar");
         $graph->legendColor = array("3072F3");
         
         $graph->cache = false;
         $graph->temp = "tmp/graphs";
         
         $graph->currency = GBussines::EUR;
         
         $graph->dateFrom = "6-05-2008";
         $graph->dateTo = "28-05-2008";
        
         /**
          * TODO Doimplemetovat nasledujici nastaveni do tridy Graph
          */
         $graph->hGrid = 10;
         $graph->vGrid = 5;
         $graph->gridSpace = 5;
         $graph->gridLine = 5;

         $graph->bgFillType = "solid";
         $graph->bgFillColor = "00FF00";
         /*OR*/
         $graph->bgFillType = "gradient";
         $graph->bgFillColor = array("76A4FB","ffffff");
         $graph->bgFillColorOffset = array(0.5,0.1);
         $graph->bgFillOrientation = 0;//90
         
         
         //graph
         $graph->gFillType = "solid";
         $graph->gFillColor = "00FF00";
         /*OR*/
         $graph->gFillType = "transparent";
         $graph->gFillOpacity = 0;//0..255 zapsano hexadecimalne, doporucuji zadavat v procentech, nasledne prepocitat na hexa
         //(255/100)*10 = 25,5 => 0x19
         
         /*OR*/
         $graph->gFillType = "gradient";
         $graph->gFillColor = array("76A4FB","ffffff");
         $graph->gFillColorOffset = array(0.5,0.1);
         $graph->gFillOrientation = 0;//90
         
        
         echo '<div style="background-color:00FF00"><img src="'.$graph->getGraphUrl().'&chg=10.0,5.0,5,5&chf=a,s,000000e5" /></div>';
         echo 'ahoj';